import { CURRENT_CAR_INDEX} from "../actions/actionsTypes"

export default function handlingReducer(state = {}, action) {
	switch (action.type) {
		case CURRENT_CAR_INDEX:
			return Object.assign({}, state, {currentCarIndex: action.data});
		default:
			return state;
	}
}
